package models;

public enum AccountType {

	cash, saving, credit;
	
	public String getLable() {
		switch(this) {
			case cash : return "现金账户";
			case saving : return "储蓄账户";
			case credit : return "信用卡账户";
			default : return getDefault().getLable();
		}
	}
	
	public static AccountType getDefault() {
		return saving;
	}
	
}
